package com.flot.yazb.model.user;

import com.flot.yazb.base.model.BModel;
import com.flot.yazb.base.client.RetrofitFactory;
import com.flot.yazb.aop.stub.RMCallback;
import com.flot.yazb.aop.stub.RMResponse;
import com.flot.yazb.retrofit.service.BService;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;


public class ZhuboDetailModel extends BModel {

    public static void getUserDetail(String id, final Transit<ZhuboDetailModel> incubator) {
        RetrofitFactory.getInstance()
                .create(BService.UserService.class)
                .getzhuboMsg(id)
                .enqueue(new RMCallback<RMResponse<ZhuboDetailModel>>(incubator.getContext()) {
                    @Override
                    protected void onSuccess(RMResponse<ZhuboDetailModel> result) {
                        incubator.onBorn(result.content, result.code(), result.message());
                    }

                    @Override
                    protected void onFail(String errorCode, String errorInfo) {
                        incubator.onBorn(null, errorCode, errorInfo);
                    }
                });
    }

    public static void getUserWXP(String id, final Transit<_$0Model> incubator) {
        RetrofitFactory.getInstance()
                .create(BService.UserService.class)
                .getWXP(id)
                .enqueue(new RMCallback<RMResponse<_$0Model>>(incubator.getContext()) {
                    @Override
                    protected void onSuccess(RMResponse<_$0Model> result) {
                        incubator.onBorn(result.content, result.code(), result.message());
                    }

                    @Override
                    protected void onFail(String errorCode, String errorInfo) {
                        incubator.onBorn(null, errorCode, errorInfo);
                    }
                });
    }

        @SerializedName("0")
        public _$0Model _$0;
        public List<ImgsModel> imgs;

        public static class _$0Model implements Serializable{

            public String mid;
            public String height;
            public String weight;
            public String blood;
            public String education;
            public String job;
            public String income;
            public String marriage;
            public String house;
            public String name;
            public String aihao;
            public String tezheng;
            public String beizhu;
            public String province;
            public String city;
            public String child;
            public String yidi;
            public String leixin;
            public String sex;
            public String fumu;
            public String meili;
            public String mobile;
            public String wechat;
            public String qq;
            public String phone;
            public String weixin;
            public String age="24";
        }

        public static class ImgsModel implements Serializable{
            public String thumb="";
            public String avatar;
        }

}
